﻿using huqiang.Communication;
using huqiang.DataSet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace huqiang.ProtoDataPro
{
    public class ProtobufHandle
    {
        public static void HandleMsg(KcpUser link, byte cmdType, UInt16 cmd, byte[] dat)
        {
            switch (cmdType)
            {
                case MsgType.Log:
                    LogDataPro.Handle(link, cmd, dat);
                    break;
                case MsgType.Transit:
                    TransitDataPro.Handle(link, cmd, dat);
                    break;
                case MsgType.ServerQuery:
                    ServerQueryDataPro.Handle(link, cmd, dat);
                    break;
                case MsgType.Debug:
                    DebugDataHandle.Handle(link, cmd, dat);
                    break;
                case MsgType.Record:
                    RecordDataPro.Handle(link,cmd,dat);
                    break;
            }
        }
    }
}
